<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue模板语法</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="root">
        <h1>插值语法</h1>
        <h2>你好，{{name}}</h2>
        <hr/>
        <h2>指令语法</h2>
        <a :href="school.url">百度一下{{name}}</a>
    </div>

</body>
    <script>
        Vue.config.productionTip = false;
        new Vue({
            el: '#root',
            data: {
                name: 'jack',
                school:{
                    name: '百度',
                    url: 'http://www.baidu.com',
                }
            }
        });
    </script>
</html>